<?php
Yii::import('zii.widgets.CPortlet');

class RecentPost extends CPortlet {
    public $lang = 'vi';

    protected function renderContent(){
        $allPost = CreateCache::usingCache('Post', false, '', $this->lang, 'id DESC', '', '', '', '', Cache_Time, 5);

        $this->render('_viewRecentPost', array(
            'post' => $allPost,
            'lang' => $this->lang
        ));
    }
}